package com.wc.blue_bridge_history.Java15B.A_报数游戏;

/**
 * @Author congge
 * @Date 2024/4/13 11:32
 * @description
 */
public class Main {
    public static void main(String[] args) {
        long n = 202420242024L;
        int res = 0;
        long end = n / 10 * 120;
        for (long i = end + 1, j = 1; j <= 4; i++) {
            if (i % 20 == 0 || i % 24 == 0) {
                j++;
                end = i;
            }
        }
        System.out.println(end);
    }
}
